package com.pine.common.beans.pineframework.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 系统角色表新增或修改请求体
 * </p>
 *
 * @author pine manage
 * @since 2024-08-16
 */
@Data
@Schema(title = "SysRoleSaveOrUpdateRequest", description = "系统角色表新增或修改请求体")
public class SysRoleSaveOrUpdateRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = -4456581329919014617L;

    /**
     * 主键
     */
    @Schema(title = "id", description = "主键")
    private Long id;
    /**
     * 角色名称
     */
    @Schema(title = "name", description = "角色名称")
    @NotBlank(message = "角色名称不能为空")
    private String name;
    /**
     * 角色编码
     */
    @Schema(title = "code", description = "角色编码")
    @NotBlank(message = "角色编码不能为空")
    private String code;
    /**
     * 显示顺序
     */
    @Schema(title = "sort", description = "显示顺序")
    private Integer sort;
    /**
     * 状态:0=启用,1=禁用
     */
    @Schema(title = "status", description = "状态:0=启用,1=禁用")
    private Integer status;
    /**
     * 数据权限:0=所有数据,1=部门及子部门数据,2=本部门数据,3=本人数据
     */
    @Schema(title = "dataScope", description = "数据权限:0=所有数据,1=部门及子部门数据,2=本部门数据,3=本人数据")
    private Integer dataScope;
}
